package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;
import com.tsd.system.entity.SysUserOrgRight;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysUserOrgRight服务实现层接口
 *
 * @author 15971
 * @date 2019/12/30 16:10:02
 */
public interface SysUserOrgRightService {

    /**
     * 描述：根据id获取SysUserOrgRight
     *
     * @param id
     */
    SysUserOrgRight getSysUserOrgRightById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysUserOrgRight
     *
     * @param sid
     */
    SysUserOrgRight queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除SysUserOrgRight
     *
     * @param id
     */
    void deleteSysUserOrgRight(Long id, SysUser opUser) throws Exception;

    void batchDeleteSysUserOrgRight(String userSid) throws Exception;

    /**
     * 描述：保存或更新SysUserOrgRight
     *
     * @param record
     * @param opUser
     */
    void saveSysUserOrgRight(SysUserOrgRight record, SysUser opUser) throws Exception;


    void batchSaveSysUserOrgRight(String user_sid, List<SysUserOrgRight> list, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysUserOrgRight
     *
     * @param params
     * @param page
     */
    List<SysUserOrgRight> findSysUserOrgRights(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysUserOrgRight
     *
     * @param params
     */
    List<SysUserOrgRight> findSysUserOrgRights(Map<String, Object> params) throws Exception;

    /**
     * 描述：根据user_sid查询SysUserOrgRight
     *
     * @param user_sid
     */
    List<SysUserOrgRight> findSysUserOrgRightByUserSid(String user_sid) throws Exception;
}
